package com.globalblue;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class FileListDisplay {
	public List<String> getFileList(String path) {
		List<String> fileList = new ArrayList<>();
		File folder = new File(path);
		File[] listOfFiles = folder.listFiles();
		for (int i = 0; i < listOfFiles.length; i++) {
			fileList.add(listOfFiles[i].getName());
			System.out.println(listOfFiles[i].getName());
		}
		return fileList;
	}
}
